<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>选择支付方式</title>

    <link href="__PUBLIC__/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="__PUBLIC__/basic/css/demo.css">
    <link rel="stylesheet" href="__PUBLIC__/css/index.css">
    <style>
        .btn_shop {
            border: 1px solid #D6D6D6;
            background: #FFFFFF;
            line-height: 16px;
            font-size: 14px;
            color: #787878;
            width: 30px;
            height: 18px;
            text-align: center;
            vertical-align: middle;
            display: inline-block;
            margin-top: -5px;
        }

        .am-navbar-default .am-navbar-nav {
            border-top: 1px solid #E9E9E9;
            background-color: #FFFFFF;
        }

        .am-navbar-default a {
            color: #777;
        }

        .cheap{
        background: #FFF8D8;line-height: 25px
        }
        .cheap span {
        font-size: 13px;color: #F48F19;
        }
        .title{
        position: absolute;top: 0px;color: #2C2D2F;font-size:11px;height: 40px;line-height: 20px;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;letter-spacing: 0;
        }
        .map{
        color: #787878;font-size: 9px;position: absolute;top: 45px;left: 95px;
        }

        .imfor{
            position: relative;
        }
        .pudc{
            position: relative
        }
        .money{
            font-size: 14px;color: red;position: absolute;top: 70px;left: 90px;
        }
        .del{
            position: absolute;top: 48px;
        }
    </style>
    <style>
        .shopbox{
            position:fixed;bottom:50px;height: 45px;background-color: #FFFFFF;line-height: 45px;
        }
        .select{
            padding: 0 0 0 5px;
        }
        .select span{
            font-size: 11px;vertical-align: middle;color: #787878;
        }
        .totol{
            font-size: 11px;color: #787878;margin-left: 5px;
        }
        .totol span{
            font-size: 15px;color: #FF0000;
        }
        .goset{
            background-color: #FFAD01;font-size: 18px;color: #fff;text-align: center;display: inline-block;width: 100%;
        }
    </style>
    <style>
        .am-modal-no-btn .am-modal-dialog{
            border-radius: 10px;
        }
        .am-modal-hd{
            font-size: 18px;
            font-weight: bold;
        }

        .am-modal-bd .modal-content{
            line-height: 20px;
            display: inline-block;
            font-size: 14px;
            letter-spacing: 1px;
        }
        .off-btn{
            display: inline-block;
            font-size: 16px;
            margin: 10px auto;
            border: 1px solid #D8D8D8;
            color: #666666;
            width: 100px;
            height: 30px;
            line-height: 28px;
            margin-right: 20px;
        }
        .on-btn{
            display: inline-block;
            width: 100px;
            font-size: 16px;
            margin: 10px auto;
            border: 1px solid #FFAD01;
            color: #FFFFFF;
            background: #FFAD01;
            height: 30px;
            line-height: 28px;
        }
    </style>
</head>

<body class=" bg-white">
<header data-am-widget="header" class="am-header am-header-default am-header-fixed">
    <h1 class="am-header-title">
        <a href="#title-link" class="">
            选择支付方式
        </a>
    </h1>
</header>

<!--有商品时-->
<form action="__URL__/submitPay" method="post" id="pay_form">
<div class="am-g bg-white" style="margin-bottom: 100px;">
    <div class="am-u-sm-12 am-padding-vertical-xs imfor">
        <label class="am-u-sm-1  am-checkbox am-warning check am-padding-0">
            <input type="checkbox" name="pay_type" value="1" class="Each am-checkbox am-warning" data-am-ucheck checked/>
        </label>
        <div class="pudc am-u-sm-11 am-padding-0">
            <img src="__PUBLIC__/new_images/active3.png"  width="80" height="70"/>
            <span class="title">余额支付</span>
   <!--         <span class="map">云南 昆明</span>
            <span class="money">￥599.2</span>-->
        </div>
    </div>

    <div class="am-u-sm-12 am-padding-vertical-xs imfor">
        <label class="am-u-sm-1  am-checkbox am-warning check am-padding-0">
            <input type="checkbox" name="pay_type" value="2" class="Each am-checkbox am-warning" data-am-ucheck checked/>
        </label>
        <div class="pudc am-u-sm-11 am-padding-0">
            <img src="__PUBLIC__/new_images/active3.png"  width="80" height="70"/>
            <span class="title">微信支付</span>
            <!--         <span class="map">云南 昆明</span>
                     <span class="money">￥599.2</span>-->
        </div>
    </div>
</div>
</form>
<a style="display: block;padding: 8px;overflow: hidden;border-radius: 2px;background-color: #FFAD01;font-size: 14px;color: #FFF;text-align: center;position: fixed;bottom: 0px;width: 100%;cursor: pointer;" onclick="pay()">立即支付</a>


</body>
<script src="__PUBLIC__/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
<script src="__PUBLIC__/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script>
    $(function () {
        var w = document.body.clientWidth/12*11-110;
         $('.title').css('width',w);
          $('.title').css('left',90);


        $.ajax({
            type:"get",
            url:"__URL__/ajaxSelectPay?order_id=" + {$order_id},
            error:function (data) {
                console.info(data);
                layer.open({
                    content: '服务器忙'
                    ,skin: 'msg'
                    ,time: 1000 //2秒后自动关闭
                });
            },
            success:function (data) {
                console.info(data);
                if(data.status == 0) {
                    modalInfo(data.msg);
                }
            }


        })
    });

    function modalInfo(content){


        layer.open({
            content: content
            , skin: 'msg'
            , time: 1000 //2秒后自动关闭
        });
    }
    function  pay(){

        $('#pay_form').submit();

    }
</script>
</html>